package com.TeacherInfoServer.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("title_history")
public class TitleHistory implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("teacher_id")
    private String teacherId;
    @TableField("title_level_id")
    private Integer titleLevelId;
    @TableField("obtain_date")
    private String obtainDate;
    @TableField("is_current_title")
    private Integer isCurrentTitle;
    @Version
    @TableField("version")
    private Integer version;
    @TableField(exist = false)
    private Teacher teacher;
}
